<!--  -->
<template>
  <wd-navbar
    :title="title"
    :bordered="false"
    safeAreaInsetTop
    custom-class="c-navbar"
    :zIndex="99"
    :left-arrow="leftArrow"
    @click-left="handleClickLeft"
  ></wd-navbar>
</template>

<script lang="ts" setup>
  defineProps({
    title: {
      type: String,
      default: '标题',
    },
    leftArrow: {
      type: Boolean,
      default: false,
    },
  });
  const emit = defineEmits(['click-left']);
  const handleClickLeft = () => {
    emit('click-left');
  };
</script>

<style lang="scss" scoped>
  .c-navbar {
    background: transparent;
  }
</style>
